# 类名：登录页面 --> LoginPage
# 属性：用户名、密码、验证码 --> username  password  code
# 方法：点击 --> click_button()

class LoginPage(object):
    def __init__(self,username,password,code):
        self.username = username
        self.password = password
        self.code = code

    def click_button(self):
        if self.username == "admin" and self.password == "123456" and self.code == "8888":
            print("登录成功")
        else:
            print("登录失败")

# 创建对象
user = LoginPage("admin","123456","111")
user.click_button()
# 打印对象
print(user)